package ylg.com.cn.beuty.config;

import android.app.Application;

import ylg.com.cn.beuty.entity.User;
import ylg.com.cn.beuty.utils.Tools;

/**
 * Created by MyPC on 2017/1/13.
 */
public class MyApplication extends Application {
    private static MyApplication instance;
    public User user;
    public boolean downApp;
    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
        Tools.setContext(getApplicationContext());
    }
    public static MyApplication getInstance() {
        return instance;
    }
    public  boolean isLogin(){
        return user==null ?false:true;
    }
}
